#!/usr/bin/ env python3
#3-1
names=['lenbing','lishengang','zhouchangyi']
print(names)
print("first name "+names[0])
print("seconde name "+names[1])
print("third name "+names[2])

#3-2
print(names[0]+" hello er g")
print(names[1]+" hi jiao shou")
print(names[2]+" hello yuanzhang")
#3-3
ridds=["bike","bus","car","train","plan"]
for ddd in ridds:
  print(ddd)

#3-4
persons=["xianglei",'jiangli','yanyong',"leifeng"]

print(" wellcome every body")
print(persons)

#3-5
persons[2]='maozedong'

print(persons)

#3-6 append 
persons.insert(2,'zhanglaoshi')
print("lenght of name list:" +str(len(persons)))
print(persons)

#3-7
del persons[3]
print("lenght of name list after del 3 :" +str(len(persons)))
print(persons)

#3-8
print(sorted(persons))
print(persons)
print(sorted(persons,reverse= True))
persons.reverse()
print(persons)
print("after  two reverse ")
persons.reverse()
print(persons)
persons.sort()
print(persons)
